package models

import "github.com/astaxie/beego/orm"

type User struct {
	Id int
	Name string
	Wx_nickname string
	Wx_openid string
	Qr_code_type int8
}

func (u *User) TableName() string {
	return "users"
}

type Moment struct {
	Id int
	UserId int
	Content string
	Img_content string
	//User *User `orm:"reverse(one)"`
}

func (u *Moment) TableName() string {
	return "vip_card_moments"
}

func init(){
 	orm.RegisterModel(new(User), new(Moment))
}